package com.songlanyun.modules.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.songlanyun.modules.comment.entity.UserComment;
import com.songlanyun.modules.comment.model.vo.CommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 会员的评论
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-30 17:57:16
 */
@Mapper
public interface UserCommentDao extends BaseMapper<UserComment> {

    IPage<UserComment> commentPage(IPage<UserComment> page, @Param("params") Map<String, Object> params);

    IPage<CommentVO> myPage(IPage<CommentVO> page, @Param("params") Map<String, Object> params);

    Integer commentSum(Long userId);

}
